package com.autumn.annotations.bean.config.imports;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;
import org.springframework.core.type.MethodMetadata;

import java.util.Set;

/**
 * ClassName: MyImportSelecter
 *
 * @Description:
 * @Author: wangqiuyang
 * @Date: 2022/1/25 11:26 上午
 * History:
 * <author>          <time>          <version>          <desc>
 * wangqiuyang    2022/1/25 11:26 上午   @Version 1.0        描述
 */
public class MyImportSelector implements ImportSelector {

    /**
    * Description: 返回你要装载的bean数组
    * @param importingClassMetadata
    * @return: java.lang.String[] 要装载bean的全类名
    * @author: wangqiuyang
    * @Date: 2022/1/25 11:26 上午
    */
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        String[] color = new String[2];
        color[0] = "com.autumn.annotations.bean.config.imports.Blue";
        color[1] = "com.autumn.annotations.bean.config.imports.Yellow";
        return color;
    }
}
